package com.haoe.service;

import com.haoe.entity.OrderDish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: 80305082
 * @Date: 2021/3/16
 * @Description: 订单包含的菜品service
 */
public interface OrderDishService {

    List<OrderDish> selectByOrderId(Long orderId);

    @Transactional(rollbackFor = Exception.class)
    int deleteByOrderId(Long orderId);

    @Transactional(rollbackFor = Exception.class)
    int insert(Long menuDishId, Long orderId, int count);
}
